package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * TbEventPlanStartId entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Embeddable
public class TbEventPlanStartId implements java.io.Serializable {

	// Fields

	private String elId;
	private String EId;

	// Constructors

	/** default constructor */
	public TbEventPlanStartId() {
	}

	/** full constructor */
	public TbEventPlanStartId(String elId, String EId) {
		this.elId = elId;
		this.EId = EId;
	}

	// Property accessors

	@Column(name = "EL_ID", nullable = false, length = 4)
	public String getElId() {
		return this.elId;
	}

	public void setElId(String elId) {
		this.elId = elId;
	}

	@Column(name = "E_ID", nullable = false, length = 10)
	public String getEId() {
		return this.EId;
	}

	public void setEId(String EId) {
		this.EId = EId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TbEventPlanStartId))
			return false;
		TbEventPlanStartId castOther = (TbEventPlanStartId) other;

		return ((this.getElId() == castOther.getElId()) || (this.getElId() != null
				&& castOther.getElId() != null && this.getElId().equals(
				castOther.getElId())))
				&& ((this.getEId() == castOther.getEId()) || (this.getEId() != null
						&& castOther.getEId() != null && this.getEId().equals(
						castOther.getEId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getElId() == null ? 0 : this.getElId().hashCode());
		result = 37 * result
				+ (getEId() == null ? 0 : this.getEId().hashCode());
		return result;
	}

}